#ifndef AUDIOPLAYER_H
#define AUDIOPLAYER_H

#include <QObject>
#include <phonon/MediaObject>
#include <phonon/AudioOutput>

class AudioPlayer : public QObject
{
    Q_OBJECT
public:
    explicit AudioPlayer(QObject *parent = 0);
    
signals:
    
public slots:
    void addAudio(const QString &fileName);

private slots:
    void stateChanged(Phonon::State oldState, Phonon::State newState);

private:
    Phonon::MediaObject *m_mediaObject;
    Phonon::AudioOutput *m_audioOutput;
    QVector<Phonon::MediaSource> m_mediaQueue;
};

#endif // AUDIOPLAYER_H
